from common.tools import Tools
from util.baserequester import BaseRequest
from util.logger import Logger
Log = Logger().logger

test_dic = {'a': 1, 'b': '2', 'c': {'d': [{'e': [{'f': [{'v': [{'g': '6'}, [{'g': '7'}, [{'g': 8}]]]}, 'm']}]}, 'h', {'g': [10, 12]}]}}
a = Tools.get_target_value('a',test_dic,[])
yiyan = BaseRequest().send_get(url='https://v1.hitokoto.cn/').json()
juzi = Tools.get_target_value('hitokoto',yiyan,[])
print(str(juzi))
Log.info('=================='+ str(juzi) + '===================')

# 测试测试